﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Passwords.Models
{
    [DataContract(Namespace = "http://schemas.datacontract.org/2004/07/PasswordsService")]
    public class BackupDataContract
    {
        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public DateTime DateCreated { get; set; }

        [DataMember]
        public int PasswordCount { get; set; }

        [DataMember]
        public int CategoryCount { get; set; }

        /// <summary>
        /// Optional additional info about the backup.
        /// </summary>
        [DataMember]
        public string Info { get; set; }

        [DataMember(IsRequired = false)]
        public byte[] Hash { get; set; }

    }
}
